const router = [
  {
    path: "/home",
    name: "/home",
    component: () => import("@/views/home/home.vue")
  },
  {
    path: "/recommend",
    name: "/recommend",
    component: () => import("@/views/recommend/recommend.vue")
  },
  {
    path: "/search",
    name: "/search",
    component: () => import("@/views/search/search.vue")
  },
  {
    path: "/chat",
    name: "/chat",
    component: () => import("@/views/chat/chat.vue")
  },
  {
    path: "/me",
    name: "/me",
    component: () => import("@/views/me/me.vue")
  },
  {
    path: "/detail/:id",
    name: "/detail",
    component: () => import("@/views/details/detail.vue")
  },
  {
    path: "/",
    redirect: "/home"
  }
];

export default router;
